home *** CD-ROM | disk | FTP | other *** search
- global text, game, chapter, bedtime, base
-
- on goback
- global game, bedtime, chapter
- set game to 0
- set bedtime to 0
- set chapter to 0
- set the timeoutScript to EMPTY
- set the volume of sound 1 to 256
- set the volume of sound 2 to 256
- go("main", "THAtitle")
- end
-
- on pcursor
- set the cursor of sprite 25 to [983, 984]
- set the cursor of sprite 26 to [981, 982]
- end
-
- on menuhold
- if the clickOn > 40 then
- pass()
- else
- dontPassEvent()
- end if
- end
-
- on first
- global bedtime, text
- if the soundBusy of 1 then
- go(the frame)
- else
- puppetSound(0)
- if chapter then
- set the volume of sound 1 to 256
- set the volume of sound 2 to 256
- go("story" & text, "THAtitle")
- else
- if bedtime then
- if bedtime = 11 then
- set bedtime to 1
- set the soundLevel to the soundLevel - 1
- go(1, "THBa")
- end if
- set sel to word bedtime of "THCa THDa THEa THFa THGa THH THIa THIc THJ THK THLa THMa"
- set bedtime to bedtime + 1
- go("x" & text, sel)
- end if
- end if
- end if
- end
-
- on pagey
- global text
- if the mouseH > the locH of sprite the clickOn then
- puppetSound(0)
- if (label("game") = marker(1)) or (char 4 of the movieName = "b") then
- nothing()
- else
- go(marker(1))
- end if
- else
- set l to char 1 to 4 of the movieName
- if (l = "THBa") or (l = "THBab") then
- puppetSound("j0")
- if l = "THBa" then
- go("x" & text)
- else
- go("x" & text, "THBa")
- end if
- else
- nothing()
- end if
- if l = "THEa" then
- puppetSound("j5")
- updateStage()
- else
- if l = "THGa" then
- puppetSound("j9")
- updateStage()
- else
- if l = "THH." then
- puppetSound("j11")
- updateStage()
- else
- if l = "THIa" then
- puppetSound("j12")
- updateStage()
- else
- if l = "THJ." then
- go("x" & text, "THIc")
- else
- if l = "THK." then
- puppetSound("j16")
- updateStage()
- else
- if l = "THLa" then
- updateStage()
- puppetSound("j17")
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- updateStage()
- go("x" & text)
- end if
- end
-